package com.qfmy.web.entity.MysqlDao;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 创建一个表对象->用来返回给前端
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
/**
 * @author: 廖志伟
 * @date: 2024-11-28
 * 表的信息
 */
public class TableInfo {
    //表id
    private Integer id;
    //表名
    @NotEmpty(message = "表名不能为空")
    private String tableName;
    //表注释
    private String tableDescription;
    //表所对应的实体类
    private String beanName;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;
    //user_id
    private Integer userId;
}
